package com.security;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class PasswordGenerator {

	public static void main(String[] args) {
		BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
		System.out.println(encoder.encode("123456"));
		System.out.println(encoder.matches("123456", "$2a$10$H1/CzVgnBnTzSIooMiVpm.VObpAqkeGUCiF42VYOD0fQporvBXXYq"));
	}
}
